package org.geektimes.context;

import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import java.util.Set;

/**
 * @ClassName: ComponentContextInitializer
 * @Description:
 * @Author: Hades
 * @created: 2021/03/24 23:51
 * @Version:1.0
 */
public class ComponentContextInitializer implements ServletContainerInitializer {

    @Override
    public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException {
        ctx.addListener(new ComponentContextListener(ctx));
    }
}
